package com.itheima.Day5;

import java.time.LocalDate;
import java.util.Scanner;

public class Dmeo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个年份");
        int year = sc.nextInt();
        LocalDate of = LocalDate.of(year,3,1);
        LocalDate locaIdate  =of.plusDays(-1);
        int day = locaIdate.getDayOfMonth();
        if (day == 28){
            System.out.println(year+"年是平年");
        }else {
            System.out.println(year+"年是闰年");
        }
    }
}
